
public class Test {
	public static void main(String[] args) {
		ComunicationDevice paraleldevice = new ParalelComunicacionDevice();
		ComunicationDevice paraleldevice2 = new ParalelComunicacionDevice();
		paraleldevice.setConnection(paraleldevice2);
		paraleldevice.sendData("hola");
		paraleldevice2.printBuffer();
	
		ComunicationDevice el1 = new UsbComunicationDevice();
		ComunicationDevice el2 = new UsbComunicationDevice();
		el1.setConnection(el2);
		el1.sendData("hola");
	}
}
